package com.difsonapps.contacttranslator.service.itf;

import java.util.*;

import org.springframework.transaction.annotation.Transactional;

import com.difsonapps.contacttranslator.dto.EventDTO;



@Transactional
public interface EventService {
	@Transactional
	public void insert(EventDTO eventDTO);

	@Transactional
	public void update(EventDTO eventDTO);

	@Transactional
	public EventDTO get(int id);

	@SuppressWarnings("unchecked")
	@Transactional
	public List<EventDTO> getAll();

	@Transactional
	public void delete(EventDTO eventDTO);
	
	@SuppressWarnings("unchecked")
	@Transactional
	public List<EventDTO> getByLastId(int lastId, int limit);
	
	@SuppressWarnings("unchecked")
	@Transactional
	public List<EventDTO> getLimit(int limit);

}
